Fix minibuffer echo not displaying
authorJustin Burkett <justin@burkett.cc>
Wed, 17 Aug 2016 15:11:56 +0000 (11:11 -0400)
committerJustin Burkett <justin@burkett.cc>
Wed, 17 Aug 2016 15:11:56 +0000 (11:11 -0400)
See #133

which-key.el

index 5d08278db82cfb1a787b5685f7d9a231f478d637..ccac5ce50f8672a08ec43544949249628cbe9510 100644 (file)
@@ -1657,20 +1657,21 @@ is the width of the live window."
 
 (defun which-key--echo (text)
   "Echo TEXT to minibuffer without logging."
-  (let* ((minibuffer (eq which-key-popup-type 'minibuffer))
-         ;; (delay (if minibuffer
-         ;;            0.2
-         ;;          (+ (or echo-keystrokes 0) 0.001)))
-         message-log-max)
-    (unless minibuffer (message "%s" text))
-
-    ;; Caused some completion commands in the minibuffer to be overwritten, so
-    ;; disable the hack for now
-
-    ;; (run-with-idle-timer
-    ;;  delay nil (lambda () (let (message-log-max)
-    ;;                         (message "%s" text))))
-    ))
+  (let (message-log-max)
+    (message "%s" text)))
+
+;; Caused some completion commands in the minibuffer to be overwritten, so
+;; disable the hack for now
+;; (defun which-key--echo (text)
+;;   "Echo TEXT to minibuffer without logging."
+;;   (let* ((minibuffer (eq which-key-popup-type 'minibuffer))
+;;          (delay (if minibuffer
+;;                     0.2
+;;                   (+ (or echo-keystrokes 0) 0.001)))
+;;          message-log-max)
+;;     (run-with-idle-timer
+;;      delay nil (lambda () (let (message-log-max)
+;;                             (message "%s" text))))))
 
 (defun which-key--next-page-hint (prefix-keys)
   "Return string for next page hint."